LDFLAGS=
AR=ar
ARFLAGS=cr
SOURCES=adc_8591.cpp  adc_8591.cpp  bluetooth.cpp  brick.cpp  color.cpp  compass.cpp  error.cpp  filesystem.cpp  i2c.cpp  io_8574.cpp  motor.cpp  network.cpp  sensor.cpp  sonar.cpp  tilt.cpp
OBJECTS=$(SOURCES:.cpp=.o)
ARCHIVE=nxtcomm.a
CXXFLAGS+=-fpermissive
 
all: $(SOURCES) $(ARCHIVE)
	
$(ARCHIVE): $(OBJECTS) 
	$(AR) $(ARFLAGS) $@ $(OBJECTS)
	
.PHONY: clean
clean:
	rm -rf $(OBJECTS) $(ARCHIVE)